//
//  HSYBaseViewController+Alert.m
//  高仿暴走斗图
//
//  Created by huangsongyao on 16/3/27.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "HSYBaseViewController+Alert.h"
#import "UIAlertView+RAC.h"

@implementation HSYBaseViewController (Alert)

- (void)showAlertHUDWithText:(NSString *)text {

    [self hideAllHUD];
    [HSYHUDHelper showHUDViewForShowType:kShowHUDViewTypeText text:text hideAfter:HUD_STRING_DISPLAY_TIME];
}

- (void)hideAllHUD {
    
    [HSYHUDHelper hideAllHUDView];
}

+ (void)showAlertHUDWithMessage:(NSString *)message {
    
    [HSYHUDHelper hideAllHUDView];
    [HSYHUDHelper showHUDViewForShowType:kShowHUDViewTypeText text:message hideAfter:HUD_STRING_DISPLAY_TIME];
}

@end
